#!/usr/bin/env python
# encoding: utf-8
'''
@author: zhaowenpeng
@contact: winston@peipeiyun.com
@software: garner
@file: init_tables.py
@time: 2020/7/22 5:09 下午
@desc:
'''


import sys
sys.path.append('../')

from core.migrations import (
    MigrationModel,
    db_manager,
)
from models.byd import Byd
import logging
logger = logging.getLogger('peewee')
logger.setLevel(logging.DEBUG)
logger.addHandler(logging.StreamHandler())


db_manager.connect()
tables=[Byd]
db_manager.create_tables(tables)
db_manager.commit()
